/*
 * =====================================================================================
 *
 *       Filename:  vector_swap.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  05/14/2011 09:22:50 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *        Company:  
 *
 * =====================================================================================
 */
// swap vectors
#include <iostream>
//#include <vector>
#define vector Vector
#include "Vector.h"
using namespace std;

int main ()
{
	unsigned int i;
	vector<int> first ((size_t)3,100);   // three ints with a value of 100
	vector<int> second ((size_t)5,200);  // five ints with a value of 200

	first.swap(second);

	cout << "first contains:";
	for (i=0; i<first.size(); i++) cout << " " << first[i];

	cout << "\nsecond contains:";
	for (i=0; i<second.size(); i++) cout << " " << second[i];

	cout << endl;

	return 0;
}
